home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / firefox-3.5.preinst < prev    next >
Text File  |  2009-11-09  |  659b  |  20 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. APP_PROFILE="usr.bin.firefox-3.5"
  6. APP_CONFFILE="/etc/apparmor.d/$APP_PROFILE"
  7. APP_DISABLE="/etc/apparmor.d/disable/$APP_PROFILE"
  8. if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
  9.     # Disable AppArmor profile on install or upgrade from earlier than when we
  10.     # first shipped the profile if the user does not already have a profile
  11.     # defined
  12.     if dpkg --compare-versions "$2" lt 3.5.2+nobinonly-0ubuntu3 || echo "$2" | egrep -q '(9.04|8.10|8.04)' ; then
  13.         if [ ! -e "$APP_CONFFILE" ]; then
  14.             mkdir -p `dirname $APP_DISABLE` 2>/dev/null || true
  15.             ln -sf $APP_CONFFILE $APP_DISABLE
  16.         fi
  17.     fi
  18. fi
  19.  
  20.